import { RouteRecordRaw } from 'vue-router';

export default {
  path: '/system',
  name: 'system',
  redirect: '/system/menu',
  component: () => import('@/layout/index.vue'),
  meta: {
    title: 'menus.system',
    icon: 'el-icon-setting',
    sort: 7
  },
  children: [
    {
      path: '/system/staff',
      name: 'system_staff',
      component: () => import('@/views/system/staff/index.vue'),
      meta: {
        title: 'menus.staffManagement',
        icon: 'el-icon-more',
        isChildren:true
      }
    },
    {
      path: '/system/role',
      name: 'system_role',
      component: () => import('@/views/system/role/index.vue'),
        meta: { title: 'menus.roleManagement', icon: 'el-icon-more',isChildren:true }
    },
    {
      path: '/system/menu',
      name: 'system_menu',
      component: () => import('@/views/system/menu/index.vue'),
        meta: { title: 'menus.menuManagement', icon: 'el-icon-more',isChildren:true }
    },
    {
      path: '/system/package',
      name: 'system_package',
      component: () => import('@/views/system/package/index.vue'),
      meta: {
        title: 'menus.packageManagement',
        icon: 'el-icon-more',
        isChildren:true
      }
    }
  ]
} as RouteRecordRaw;
